package com.kaigejava.command.sdk;

/**
 * Created by kaigejava on 2019/8/28.
 * 音响API
 */
public class StereoAPI {

    /**
     * 音量
     */
    private static int volume = 0;

    public void On(){
        System.out.println("打开音响音量~");
    }

    public void Off(){
        System.out.println("关掉音响音量~");
    }

    public void SetCd(){
        System.out.println("音响放入碟片");
    }

    public void AddVolume(int vol){
       volume = vol;
        System.out.println("音量增加到"+volume);
    }

    public void downVolume(int vol){
        volume = vol;
        System.out.println("音量减少到"+volume);
    }

    public int GetVol() {
        return volume;
    }

    public void Start() {
        System.out.println("打开音响");
    }

}
